package com.phone.modules.pms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品查询参数
 * Created by wanghao.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ProductListDTO手机数据传输对象", description="用于前台展示，返回品牌对应的手机列表")
public class ProductListDTO {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "手机名称")
    private String productName;

    @ApiModelProperty(value = "手机图片")
    private String pic;

    @ApiModelProperty(value = "发售日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date saleTime;

    @ApiModelProperty(value = "处理器")
    private String processor;

    @ApiModelProperty(value = "测试内存组合")
    private String ramVersion;

    @ApiModelProperty(value = "发售价格")
    private BigDecimal price;

    @ApiModelProperty(value = "测试版本")
    private String systemVersion;
}
